package com.atguigu.observer.demo3;

import java.util.Observable;

public class WeatherData extends Observable {

	private float temperature;

	public float getTemperature() {
		return temperature;
	}

	public void setTemperature(float temperature) {
		this.temperature = temperature;
		tempChanged();
	}

	public void tempChanged() {
		setChanged();
		notifyObservers();
	}
}